#首页
from selenium.webdriver.common.by import By

from utils.pagebase import PageBase

class PageIndex(PageBase):
    path_url = "/"
    loginbutton=By.XPATH,'//a[@href="/simple/login"][text()="登录"]'
    def __init__(self,driver,base_url):
        PageBase.__init__(self,driver,base_url)

    # 打开网站
    def openurl(self):
        self.open(PageIndex.path_url)

        # 单选按钮
    def click_login(self):
        self.mouse_click(PageIndex.loginbutton)

